home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
9-Digit Zip Code Directory
/
9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO
/
z4src.zip
/
CLELEM.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-01
|
3KB
|
93 lines
//----------------------------------------------------------------------------
// MODULE DESCRIPTION
//
// Module: clelem.hpp
// Title: C++ Class Libraries
// Notice: John M. Weeder
// Copyright (c) 1993. All rights reserved.
// This module contains proprietary information and should be
// treated as confidential.
//
//----------------------------------------------------------------------------
// MAINTENANCE HISTORY
//
// $Workfile$
// $Revision$
// $Author$
// $Date$
// $Log$
//
//----------------------------------------------------------------------------
// MODULE NARRATIVE
//
// This module contains code for the class CL_ELEMENT.
//
// The code in this module may be written in C++ or C.
//
// This module is portable to:
// DOS 3.X+
// MS Windows 3.X+
// OS/2 2.X+
// OS/2 2.0 PM
//
// The following compilers are supported:
// MSC 6.0A
// MSC/C++ 7.0
// Borland C++ 3.1 for DOS
// Borland C++ 1.0 for OS/2 2.X
//
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Class CL_ELEMENT
//----------------------------------------------------------------------------
#define CL_ELEMENT_PARENT CL_OBJECT
class CLASSTYPE CL_ELEMENT : public CL_ELEMENT_PARENT
{
friend class CLASSTYPE CL_LIST;
PCL_ELEMENT pelemPrev,pelemNext; // Pointer to next and previous
PCL_LIST plist; // Pointer to owner or NULL
public:
FN_M CL_ELEMENT();
FN_M CL_ELEMENT(RCCL_ELEMENT);
virtual FN_M ~CL_ELEMENT();
virtual BOOL FN_M Destroy(BOOL = TRUE);
virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
BOOL FN_M InList() const
{
return plist != NULL;
}
PCL_LIST FN_M List() const
{
return plist;
}
PCL_ELEMENT FN_M Next() const
{
return pelemNext;
}
RCCL_ELEMENT FN_M operator=(RCCL_ELEMENT);
PCL_ELEMENT FN_M Previous() const
{
return pelemPrev;
}
virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
#if COMPILE_DEBUG
static VOID FN_M Print(PCCL_ELEMENT = NULL, PCSZ = NULL, SIZET = 0);
static BOOL FN_M Test(SHORT = 0);
#endif
protected:
private:
};
//----------------------------------------------------------------------------
//------------------------------- End of File --------------------------------
//----------------------------------------------------------------------------